<?php
namespace Home\Controller;

class CommentController extends HomeController
{
	

	public function add()
	{
		$data = I();
		$Comment = M('comment');
		$result = $Comment->add($data);
		if ($result > 0)
		{
			$this->success('发表成功','./index',3);
        } else{
        	$this->error('发表失败',3);
        }
    }
}

